home *** CD-ROM | disk | FTP | other *** search
/ Acorn Risc Technologies StrongARM CD-ROM / Acorn Risc Technologies StrongARM CD-ROM.iso / ftp / documents / appnotes / 031_045 / 032c / Text
Encoding:
Text File  |  1993-08-02  |  5.3 KB  |  121 lines

  1. 21st July 1992
  2. -----------------------------------------------------------------------------
  3. Support Group Application Note  
  4. Number: 032 
  5. Issue: 1  
  6. Author: D J Bell
  7. -----------------------------------------------------------------------------
  8.  
  9. BASIC IV Application Note
  10.  
  11. -----------------------------------------------------------------------------
  12. Applicable Hardware:    Master 128
  13.                         Master Compact
  14.  
  15. Related Application Notes:
  16.  
  17.  
  18. -----------------------------------------------------------------------------
  19. Copyright (C) Acorn Computers Limited 1992
  20.  
  21. Every effort has been made to ensure that the information in this leaflet is 
  22. true and correct at the time of printing. However, the products described in
  23. this leaflet are subject to continuous development and improvements and
  24. Acorn Computers Limited reserves the right to change its specifications at
  25. any time. Acorn Computers Limited cannot accept liability for any loss or
  26. damage arising from the use of any information or particulars in this
  27. leaflet. ACORN, ECONET and ARCHIMEDES are trademarks of Acorn Computers
  28. Limited.
  29. -----------------------------------------------------------------------------
  30. Support Group
  31. Acorn Computers Limited
  32. Acorn House
  33. Vision Park
  34. Histon
  35. Cambridge       CB4 4AE
  36. -----------------------------------------------------------------------------
  37.  
  38.  
  39. BASIC IV
  40.  
  41. Incorporates changes from BASIC II to BASIC III as follows:
  42.  
  43.         *  Provides some formatting of Assembly listings
  44.         *  COLOR is accepted as an alternative to COLOUR
  45.         *  SAVE A$+B$ works correctly
  46.         *  USE of ! and ? as formal parameters works correctly
  47.         *  A USA version listing COLOR instead of COLOUR is available
  48.  
  49. Includes the following additional changes:
  50.  
  51.         *  The version number in ROM is 4
  52.         *  Incorporates all the 65C02 (65C12) instructions in Assembler:
  53.                 *  DEC A may be represented as DEA
  54.                 *  INC A may be represented as INA for compatibility with
  55.                 MASM
  56.                 *  STZ may be represented as CLR
  57.         *  ASL ALFRED or similar is accepted ie the 'A' indication of
  58.         accumulator addressing mode for ASL, LSR, ROL, ROR, DEC, INC no
  59.         longer affects symbol recognition.
  60.  
  61.         *  X, Y or A in the Assembler may be in lower case.  EQUB, EQUW &
  62.         EQUD may also be in lower case.
  63.  
  64.         *  Trailing spaces will always be stripped from lines entered into
  65.         the interpreter.
  66.  
  67.         *  Leading spaces will be stripped from lines entered into the
  68.         interpreter when a non-zero LISTO is set.  The assumption is that
  69.         there will be a formatted listing on screen when cursor editing is
  70.         used when LISTO is non-zero.
  71.  
  72.         *  LISTO indents loops correctly.
  73.         *  Cross-reference/Search output is available from LIST.  Lines will
  74.         be LISTed IF the specified string is present eg:     
  75.                 LIST  IF  DEF
  76.                 LIST  10, 1000 IF =
  77.                 LIST  ,2000 IF A%
  78.         It is not possible to search for TIME=90, for example, as a
  79.         statement.  It will only be checked for as a boolean expression. 
  80.         PTR£, HIMEM, PAGE, LOMEM are similarly affected.
  81.  
  82.         *  RENUMBER or LIST will not be affected by &8D in comments or
  83.         strings.  In addition LIST will not be confused by coloured
  84.         comments.
  85.  
  86.         *  A statement to update an open file's extent 'EXT£chan=length' has
  87.         been added. This uses OSARGS and so will not work until there are
  88.         suitable filing systems.
  89.  
  90.         *  A display real-time clock pseudo variable TIME$ has been
  91.         introduced.  It fetches a fixed 24 byte string from the OS in
  92.         response to PRINT TIME$ (or similar).  The string looks like Wed, 31
  93.         Dec 1900.23:59:59.  Assigning to TIME$="fred" merely passed the
  94.         string directly to the OS with the length in the first byte.
  95.  
  96.         *  AUTO no longer outputs a space after the line number.
  97.         *  General recursion is now allowed in 'FOR' loops eg:
  98.                 DEF FNQ FORJ=1TO10 : P.J;:N. :=10
  99.                 FORI=FNQ-9 TO FNQ STEP FNQ/10
  100.         now works.  In previous version on the first FNQ or FNQ's without
  101.         the loop would work.
  102.  
  103.         *  A new command EDIT which has identical syntax to LIST (even the
  104.         IF section) can be used to create an in core text file of the
  105.         current program (or section of it eg EDIT 10,100). It then issues
  106.         the command "*EDIT hh, hh" where the hex addresses are addresses in
  107.         zero page of the start of the in-memory text and the address in zero
  108.         page of the end of the in-memory text plus one LISTO 0 is set before
  109.         conversion begins. If there is not enough space to convert the
  110.         entire file, the error message 'No room' will be given together with
  111.         a line number which shows how far through the program it had got: at
  112.         this stage either CLEAR or a different EDIT command should be used. 
  113.         ESCAPE will behave similarly, stopping the conversion to text.
  114.  
  115.         *  The use of the " | " character at the end of VDU parameters can
  116.         be used to insert the correct number of remaining zeros.
  117.  
  118. A full description of BBC BASIC IV can be found in the Master Series
  119. Reference Manual part 2 (product code ADJ23).  The Master Series Welcome
  120. Guide contains a summary of the features (product code ADJ01).
  121.